package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

/**
 * @author jianbin
 * @date 2022/6/28 8:31
 **/
public class PickedTroopsSlotPo {
    private String playerCode;  //玩家code
    private String code;        //兵符的code
    private int dataId;         //兵符的id
    private int type;           //类型  : 哪个阵容
    private String name;        //名字
    private int quality;        //品质
    private String entryId;     //词条的id
    private String value;       //值
    private String isLock;      //是否锁
    private Boolean isUse;      //是否正在使用
    private String reEntryId;   //重铸的词条id
    private String reValue;     //重置的词条id值
    private long updateTime;    //更新时间

    public static ResultObjectBuilder<PickedTroopsSlotPo> builder = rs -> {
        PickedTroopsSlotPo po = new PickedTroopsSlotPo();
        po.setPlayerCode(rs.getString("pCode"));
        po.setCode(rs.getString("code"));
        po.setDataId(rs.getInt("dataId"));
        po.setType(rs.getInt("type"));
        po.setName(rs.getString("name"));
        po.setQuality(rs.getInt("quality"));
        po.setEntryId(rs.getString("entryId"));
        po.setValue(rs.getString("value"));
        po.setIsLock(rs.getString("isLock"));
        po.setUse(rs.getBoolean("isUse"));
        po.setReEntryId(rs.getString("reEntryId"));
        po.setReValue(rs.getString("reValue"));
        po.setUpdateTime(rs.getLong("updateTime"));
        return po;
    };


    public String getPlayerCode() {
        return playerCode;
    }

    public void setPlayerCode(String playerCode) {
        this.playerCode = playerCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
    }

    public String getEntryId() {
        return entryId;
    }

    public void setEntryId(String entryId) {
        this.entryId = entryId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getIsLock() {
        return isLock;
    }

    public void setIsLock(String isLock) {
        this.isLock = isLock;
    }

    public Boolean getUse() {
        return isUse;
    }

    public void setUse(Boolean use) {
        isUse = use;
    }

    public String getReEntryId() {
        return reEntryId;
    }

    public void setReEntryId(String reEntryId) {
        this.reEntryId = reEntryId;
    }

    public String getReValue() {
        return reValue;
    }

    public void setReValue(String reValue) {
        this.reValue = reValue;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public static ResultObjectBuilder<PickedTroopsSlotPo> getBuilder() {
        return builder;
    }

    public static void setBuilder(ResultObjectBuilder<PickedTroopsSlotPo> builder) {
        PickedTroopsSlotPo.builder = builder;
    }
}
